package org.jeecg.modules.educational.entity.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.educational.entity.EducationMessage;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author liujiamiao
 * @since 2020-11-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="EducationMessage对象", description="")
public class EducationMessageVO extends EducationMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @Value("${educational.learningForm}")
    private final String learning_form = "learning_form";

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "序列")
    private Integer serialNumber;

    @ApiModelProperty(value = "名字")
    private String name;

    @ApiModelProperty(value = "毕业学校")
    private String school;

    @ApiModelProperty(value = "专业")
    private String professional;

    @ApiModelProperty(value = "证明人")
    private String certifier;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "开始时间")
    private Date startDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "结束时间")
    private Date endDate;

    @ApiModelProperty(value = "证明人手机号")
    private String certifierPhone;

    @Dict(dicCode  = learning_form)
    @ApiModelProperty(value = "学习形式")
    private String learningForm;

    @ApiModelProperty(value = "学习结果")
    private String learningOutcome;

    @ApiModelProperty(value = "学历证书编号")
    private String educationNo;

    @ApiModelProperty(value = "学历")
    private Integer education;

    @Dict(dicCode  = "degree")
    @ApiModelProperty(value = "学位")
    private String degree;

    @ApiModelProperty(value = "学位证书编号")
    private String degreeNo;

    @ApiModelProperty(value = "是否最高学历")
    private Boolean isMaxEducation;

    @ApiModelProperty(value = "是否最高学位")
    private Boolean isMaxDegree;

    @ApiModelProperty(value = "是否全日制（是与否）")
    private String isFullTime;

    @ApiModelProperty(value = "是否最高学历（是与否）")
    private String isMaxEducationString;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "基本信息Id")
    private int basicId;

}
